package com.sample.web

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.groovyflow.spring.locator.BeanLocator;
import org.groovyflow.spring.locator.BeanLocatorImpl;
import org.springframework.showcase.coverc.service.RecipeManager;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import org.groovy.util.*

import org.groovyflow.spring.web.*

import com.sample.*


class ToFunController{

	def before = ["snore"]
	
    def snore(req, res){
    	println "zzzzzzzzzzzzzzzzzzzzzzzzzzz!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    }


	def tryit(req, res){
		println 'Redirecting from ToFunController'
		
		return new ModelAndView("redirect:fun_tryit.do")
		//The line below also works.
		//res.sendRedirect("fun_tryit.do")
	}
	
	

}